<template>
	<view class="wrap"></view>
</template>
<script>

	export default {
		data() {
			return {
			}
		},
		onLoad(e) {
			let _this = this;
			wx.scanCode({
				async success(res) {
					uni.request({
						url: `${_this.vux_envDomaion.serverInfo.getJsonUrl}/f/b/${decodeURIComponent(res.path.split('?')[1].split('=')[1])}`,
						data: {},
						header: {
							"content-type": "application/x-www-form-urlencoded"
						},
						method: "get",
						success(res) {
							console.log(
								"-------------scene",
								JSON.parse(JSON.stringify(res.data))
							);
							// 表示从太阳码进入
							_this.$u.vuex("vuex_wechatInfo.isScene", true);
							// 保存传入参数
							_this.$u.vuex(
								"vuex_wechatInfo.sceneObj",
								JSON.parse(JSON.stringify(res.data))
							);
							// 想要跳转的url
							wx.reLaunch({url: '/pages/campTrip/joinCamp'})
						}
					});
				}
			})
		},
		onShow(e) {
			
		},
		methods: {},
	}
</script>

<style lang="scss" scoped></style>
